home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.6 / linuxcon / usr / lib / linuxconf / help.eng / fstab / mountpoint.help < prev    next >
Encoding:
Text File  |  1996-08-04  |  6.6 KB  |  205 lines

  1.   Mapping a file system into the main tree
  2.   Introduction
  3.  
  4.   11..  PPuurrppoossee
  5.  
  6.   At this point, we are trying to logically connect a file-system (local
  7.   partition or server volume) in the directory tree. It can be anywhere,
  8.  
  9.   It is not uncommon to get the following situation
  10.  
  11.   ╖  You have a large directory, say /home/jack which is getting bigger
  12.      and bigger.
  13.  
  14.   ╖  You are out of disk space.
  15.  
  16.   ╖  You buy a second hard drive, create a single partition on it
  17.      (/dev/hdb1 for example).
  18.  
  19.   ╖  You rename /home/jack to /home/jack.backup
  20.  
  21.   ╖  You map /dev/hdb1 to /home/jack.
  22.  
  23.   ╖  You copy /home/jack.backup to /home/jack.
  24.  
  25.   After that, you may delete /home/jack.backup. You get the same logical
  26.   file layout, but have now some space on the first drive and a lot of
  27.   space for /home/jack to grow on the second drive.
  28.  
  29.   22..  TTaasskk
  30.  
  31.   To achieve the connection, you have to
  32.  
  33.   ╖  Select a hard drive partition.
  34.  
  35.   ╖  Identify the type of file-system. _E_x_t_2 for _L_i_n_u_x and _U_m_s_d_o_s for DOS
  36.      drive.
  37.  
  38.   ╖  Pick a mount point. It can be any directory or subdirectory.
  39.  
  40.   33..  GGeenneerraall ooppttiioonnss
  41.  
  42.   The general option are not needed most of the time. They allow for
  43.   increase flexibility and security.
  44.  
  45.   ╖  Read-only
  46.  
  47.      It is possible to protect a partition from writing. Even the
  48.      superuser won't be able to write there. This is seldom use on
  49.      normal hard drive partition though.
  50.  
  51.   ╖  user mountable
  52.  
  53.      This option is generally used with the following one. It is useful
  54.      for removable media. It allows any one to activate the connection
  55.      at any time. Normally, only root (the superuser) can establish a
  56.      mount.
  57.  
  58.   ╖  Not mount at boot time
  59.  
  60.      Especially useful for removable media. It prevent the system from
  61.      trying to establish a mount (and fail) at boot time.
  62.  
  63.   ╖  No program allowed to execute
  64.  
  65.      It is a security feature, especially useful for removable media. If
  66.      you set the uusseerr mmoouunnttaabbllee option on a removable media, it allows
  67.      any user to come and install a set of files specially setup to give
  68.      him full access to your system (administrator privilege).
  69.  
  70.   ╖  No set-user-identifier allowed
  71.  
  72.      Again a security feature. It is a compromise between full access
  73.      and the above option (No execution allowed).
  74.  
  75.      By setting this option, the system will deny privileged program
  76.      their special rights. A privileged program is one that switch the
  77.      user to another identity while it is running (generally root),
  78.      allowing this user to do special tasks only the supervisor can do.
  79.  
  80.   44..  _(_U_)_M_s_d_o_s aanndd _H_p_f_s ((_O_s_/_2)) ooppttiioonnss
  81.  
  82.   44..11..  SSeeccuurriittyy ffeeaattuurreess
  83.  
  84.   Both _M_s_-_D_O_S and _O_s_/_2 are single user operating system.  Their
  85.   respective file-systems lack most of the features expect from a
  86.   multiuser operating system like _L_i_n_u_x.
  87.  
  88.   For one, there is no file ownership. It would mean that when a _D_o_s
  89.   hard drive is mount into the _L_i_n_u_x file-system tree, files would be
  90.   available to any user on the machine.
  91.  
  92.   Keep in mind that _L_i_n_u_x is a multiuser system. It is fairly easy to
  93.   create user accounts for co-workers on your machine so they can share
  94.   your CPU or system resources. It would not be nice to find out later
  95.   that everyone have access to every personal file you have in your _D_o_s
  96.   partitions.
  97.  
  98.   _L_i_n_u_x offer a neat solution to this. You can logically apply an
  99.   ownership and permission flag to all files and directories in a _D_o_s
  100.   partitions. No special data is written to the partitions. It is simply
  101.   a presentation mode used by _L_i_n_u_x.
  102.  
  103.   Here are the options you can control
  104.  
  105.   ╖  Default user ID
  106.  
  107.      You can assign one owner for every files and directories in the
  108.      file-system. The default owner is root.
  109.  
  110.   ╖  Default group ID
  111.  
  112.      You can assign one group for every files and directories in the
  113.      file-systems. The default group is root.
  114.  
  115.   ╖  Default permissions
  116.  
  117.      You can turn on or off selectively every one of the nine _U_n_i_x style
  118.      permission bits. Permissions bits are expressed as three groups or
  119.      three bits each. Each group has the following layout
  120.  
  121.   ╖  Read access
  122.  
  123.   ╖  Write access
  124.  
  125.   ╖  Execution access
  126.  
  127.      The groups are
  128.  
  129.   ╖  Owner permission bits
  130.  
  131.   ╖  Group permission bits
  132.  
  133.   ╖  Other users (not the owner and not member of the group) permission
  134.      bits.
  135.  
  136.   44..22..  TTrraannssllaattiioonn mmooddee
  137.  
  138.   Text file are stored in a slightly different format on _M_s_-_D_O_S and
  139.   _O_s_/_2, compared to _U_n_i_x and _L_i_n_u_x. The difference lie in the way end-
  140.   of-file are identified.
  141.  
  142.   _M_s_-_D_O_S use a sequence of two characters, an ASCII CCaarrrriiaaggee--rreettuurrnn
  143.   followed by an ASCII LLiinnee FFeeeedd.  _U_n_i_x use only a single LLiinnee FFeeeedd.
  144.  
  145.   The mmssddooss, uummssddooss and hhppffss file-systems share one option to make life
  146.   easier when sharing file on a hard drive between _L_i_n_u_x and _M_s_-_D_O_S or
  147.   _O_S_/_2
  148.  
  149.   Here are the mode available:
  150.  
  151.   ╖  binary
  152.  
  153.      This means no translation at all.
  154.  
  155.   ╖  auto
  156.  
  157.      The translation will be activated on all file except on some file
  158.      with a special extension.
  159.  
  160.      Here are the known binary extensions
  161.  
  162.   ╖  Program code
  163.  
  164.      APP BIN COM DLL DRV EXE LIB OBJ OVL OVR PIF SYS
  165.  
  166.   ╖  Common archivers
  167.  
  168.      ARC ARJ DEB GZ  LHA LZH TAR TAZ TGZ TPZ TZ  TZP Z   ZIP ZOO
  169.  
  170.   ╖  Graphics
  171.  
  172.      BMP GIF GL  JPG PCX TIF
  173.  
  174.   ╖  TeX
  175.  
  176.      DVI GF PK PXL TFM VF
  177.  
  178.   ╖  text
  179.  
  180.      The translation will be done on all file. This option should be
  181.      used with care.
  182.  
  183.   Once a translation mode is selected, it is done both at read and write
  184.   time, making this almost transparent to _L_i_n_u_x application.
  185.  
  186.   Please note that the current trend is toward flexible utilities
  187.   (editors) which can handle both format instead of using a file-system
  188.   trick like this one.
  189.  
  190.   55..  OOtthheerr ooppttiioonnss
  191.  
  192.   New file-systems and file-systems features do appear once in a while.
  193.   These file-systems may have options unknown to _L_i_n_u_x_c_o_n_f.
  194.  
  195.   To cope with this, there is an extra option line. Normally file-system
  196.   option are a bunch of keyword/value pair, separated by a comma.
  197.  
  198.                        opt1=val,opt2=none,opt3,opt4=2
  199.  
  200.   66..  CCoommmmeenntt
  201.  
  202.   You can write anything you want there, maybe some explanation about
  203.   the option combination you have selected.
  204.  
  205.